<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>jsPlumb案例</title>
	<link rel="stylesheet" href="css/layui.css" media="all">
	<link rel="stylesheet" href="css/jvisio.css" media="all">
</head>
<body>
		
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-body">
		              	<div class="layui-card-body layui-row layui-col-space10">
			              	<div class="layui-col-md2" id="flowNode">
								<div class="jnode-box jnode-round bdc-success" data-template="jnode-template" data-jnode="start" data-jnode-class="jnode-radius bdc-success">
									<span>开始</span>
								</div>
								<div class="jnode-box jnode-rectangle bdc-primary" data-template="jnode-template" data-jnode="task" data-jnode-class="jnode-task bdc-primary">
									<span>节点</span>
								</div>
								<div class="jnode-box jnode-diamond bdc-warning" data-template="jnode-template" data-jnode="judge" data-jnode-class="jnode-diamond jnode-judge bdc-warning">
									<span>判断</span>
								</div>
								<div class="jnode-box jnode-round bdc-danger" data-template="jnode-template" data-jnode="end" data-jnode-class="jnode-radius bdc-danger">
									<span>结束</span>
								</div>
						        <div class="layui-footer" style="position:absolute; bottom:20px; left:50%; margin-left: -80px;">
						        	<p>温馨提示：</p>
						        	<p>1.单击节点-修改该节点</p>
						        	<p>2.双击节点-删除该节点</p>
						        	<p>3.双击线条-删除该线条</p>
						        	<br>
						        	<button data-type="submit" class="layui-btn layui-btn-event">提交</button>
						            <button data-type="reset" class="layui-btn layui-btn-primary layui-btn-event">刷新</button>
						        </div>
							</div>
			              	<div class="layui-col-md10" id="folwMain">
			              		<div class="nodeTitle">
				                    <div style="padding: 12px;">
				                    	<h3>重命名节点标题：</h3>
					                    <input type="text" name="nodeTitle" placeholder="请输入节点标题" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" style="margin:10px 0px;">
				                		<div class="layui-layer-btn" style="padding:0;float: right;">
				                			<button data-type="nodeSubmit" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-event" style="margin:0;">保存</button>
				                			<button data-type="nodeClose" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-event" style="margin:0;">关闭</button>
				                		</div>
				                    </div>
			              		</div>
			              		<script type="text/x-mustache" id="jnode-template">
									<div class="jnode-panel" id="{{id}}" jnode="{{jnode}}" style="top:{{top}}px;left:{{left}}px">
										<div class="jnode-box {{jnodeClass}}">{{{jnodeHtml}}}</div>
									</div>
								</script>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
		
	<script>
		
	</script>
	
	<script src="js/jquery-1.10.2.min.js"></script>
	<script src="js/uuid.min.js"></script>
	<script src="js/mustache.min.js"></script>
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/jquery.jsPlumb-1.7.2.js"></script>
	<script src="js/jvisio-config.js"></script>
	<script src="js/jvisio-index.js"></script>
</body>
</html>
